- Author:
- Soroush Safaei <ssaf006@aucklanduni.ac.nz>
- Date:
- 2017-08-17 11:40:48+12:00
- Desc:
- Merge remote-tracking branch 'origin/master'
- Permanent Source URI:
- https://models.fieldml.org/workspace/43b/rawfile/38d8a9aa65151ba0e3b2c342731b9488a3e272c9/BG Tutorial Mechanical Systems/Mechanics 2.cellml
<?xml version='1.0'?>
<model name="my_model" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#">
<units name="J_per_m">
<unit units="joule"/>
<unit exponent="-1" units="metre"/>
</units>
<units name="J_per_m2">
<unit units="joule"/>
<unit exponent="-2" units="metre"/>
</units>
<units name="m_per_s">
<unit units="metre"/>
<unit exponent="-1" units="second"/>
</units>
<units name="m_per_s2">
<unit units="metre"/>
<unit exponent="-2" units="second"/>
</units>
<units name="m2_per_J">
<unit exponent="2" units="metre"/>
<unit exponent="-1" units="joule"/>
</units>
<units name="Js_per_m2">
<unit units="joule"/>
<unit units="second"/>
<unit exponent="-2" units="metre"/>
</units>
<units name="Js2_per_m2">
<unit units="joule"/>
<unit exponent="2" units="second"/>
<unit exponent="-2" units="metre"/>
</units>
<component name="main">
<!-- State variables-->
<variable initial_value="0" name="t" units="second"/>
<variable initial_value="1" name="q1" units="metre"/>
<variable initial_value="0" name="q3" units="metre"/>
<variable initial_value="0" name="v1" units="m_per_s"/>
<variable initial_value="0" name="v2" units="m_per_s"/>
<variable name="v3" units="m_per_s"/>
<variable name="a1" units="m_per_s2"/>
<variable name="a2" units="m_per_s2"/>
<variable name="u1" units="J_per_m"/>
<variable name="u2" units="J_per_m"/>
<variable name="u3" units="J_per_m"/>
<variable name="u4" units="J_per_m"/>
<variable name="u5" units="J_per_m"/>
<variable name="u6" units="J_per_m"/>
<variable name="u7" units="J_per_m"/>
<!-- Constitutive parameters-->
<variable initial_value="20" name="E1" units="J_per_m2"/>
<variable initial_value="20" name="E2" units="J_per_m2"/>
<variable initial_value="0.1" name="R1" units="Js_per_m2"/>
<variable initial_value="0.1" name="R2" units="Js_per_m2"/>
<variable initial_value="10" name="L1" units="Js2_per_m2"/>
<variable initial_value="10" name="L2" units="Js2_per_m2"/>
<!-- Conservation laws-->
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q1</ci>
</apply>
<apply>
<minus/>
<ci>v1</ci>
</apply>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>q3</ci>
</apply>
<ci>v3</ci>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>v1</ci>
</apply>
<ci>a1</ci>
</apply>
<apply>
<eq/>
<apply>
<diff/>
<bvar>
<ci>t</ci>
</bvar>
<ci>v2</ci>
</apply>
<ci>a2</ci>
</apply>
<apply>
<eq/>
<ci>u1</ci>
<apply>
<plus/>
<ci>u2</ci>
<ci>u6</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>u2</ci>
<apply>
<plus/>
<ci>u4</ci>
<ci>u5</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>u2</ci>
<apply>
<plus/>
<ci>u3</ci>
<ci>u7</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>v3</ci>
<apply>
<minus/>
<ci>v1</ci>
<ci>v2</ci>
</apply>
</apply>
<!-- Constitutive relations-->
<apply>
<eq/>
<ci>u1</ci>
<apply>
<times/>
<ci>E1</ci>
<ci>q1</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>u3</ci>
<apply>
<times/>
<ci>R2</ci>
<ci>v2</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>u4</ci>
<apply>
<times/>
<ci>E2</ci>
<ci>q3</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>u5</ci>
<apply>
<times/>
<ci>R1</ci>
<ci>v3</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>u6</ci>
<apply>
<times/>
<ci>L1</ci>
<ci>a1</ci>
</apply>
</apply>
<apply>
<eq/>
<ci>u7</ci>
<apply>
<times/>
<ci>L2</ci>
<ci>a2</ci>
</apply>
</apply>
</math>
</component>
</model>